-
Notifications
You must be signed in to change notification settings - Fork 26
[minor] add support to install MAS Provisioner #1601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add evidence of what testing has happened?
sm_update_secret $SECRET_NAME_PROVISIONER "{\"git_token\": \"${GITHUB_PAT}\"}" "${TAGS}" | ||
else | ||
export SECRET_KEY_GITHUB_TOKEN="" | ||
fi | ||
|
||
if [ -n "$PAGERDUTY_KEY" ]; then | ||
echo "- Update PAGERDUTY_KEY secret" | ||
TAGS="[{\"Key\": \"source\", \"Value\": \"gitops_mas_provisioner\"}, {\"Key\": \"account\", \"Value\": \"${ACCOUNT_ID}\"}, {\"Key\": \"cluster\", \"Value\": \"${CLUSTER_ID}\"}]" | ||
sm_update_secret $SECRET_NAME_PROVISIONER "{\"pd_key\": \"${PAGERDUTY_KEY}\"}" "${TAGS}" | ||
else | ||
export SECRET_KEY_PAGERDUTY="" | ||
fi | ||
|
||
if [ -n "$OCM_API_KEY" ]; then | ||
echo "- Update OCM_API_KEY secret" | ||
TAGS="[{\"Key\": \"source\", \"Value\": \"gitops_mas_provisioner\"}, {\"Key\": \"account\", \"Value\": \"${ACCOUNT_ID}\"}, {\"Key\": \"cluster\", \"Value\": \"${CLUSTER_ID}\"}]" | ||
sm_update_secret $SECRET_NAME_PROVISIONER "{\"ocm_api\": \"${OCM_API_KEY}\"}" "${TAGS}" | ||
else | ||
export SECRET_KEY_OCM_API="" | ||
fi | ||
|
||
if [ -n "$CSB_CA_CERT" ]; then | ||
echo "- Update CSB_CA_CERT secret" | ||
TAGS="[{\"Key\": \"source\", \"Value\": \"gitops_mas_provisioner\"}, {\"Key\": \"account\", \"Value\": \"${ACCOUNT_ID}\"}, {\"Key\": \"cluster\", \"Value\": \"${CLUSTER_ID}\"}]" | ||
sm_update_secret $SECRET_NAME_PROVISIONER "{\"cert\": \"${CSB_CA_CERT}\"}" "${TAGS}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these calls are updating the same secret, this will cause all the keys to be removed that were previously present i.e. if the CSB_CA_CERT is set then the secret will only have one key called cert
and all the previous keys that might be set i.e. ocm_api etc will be lost
Add support to install MAS Provisioner/Service Broker via gitops/saas-envs